package com.devilvan.betrice.sinofinance.controller;

import com.devilvan.betrice.common.BetriceResultVo;
import com.devilvan.betrice.sinofinance.po.SinaAsharesQuotesPo;
import com.devilvan.betrice.sinofinance.service.SinaAsharesQuotesService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Evad.Wu
 * @Description 新浪财经-A股实时行情信息表 控制器
 * @date 2023-03-22
 */
@RestController
@RequestMapping(value = "sinaAsharesQuotesController")
@Tag(name = "新浪财经-A股实时行情信息表 控制器")
public class SinaAsharesQuotesController {
    @Resource(name = "sinaAsharesQuotesServiceImpl")
    private SinaAsharesQuotesService sinaAsharesQuotesService;

    /**
     * 总请求控制器
     *
     * @return 形式返回
     */
    @Operation(summary = "总请求控制器")
    @GetMapping(value = "doSinaAsharesQuotes")
    public BetriceResultVo<SinaAsharesQuotesPo> doSinaAsharesQuotes() {
        BetriceResultVo<SinaAsharesQuotesPo> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }

    /**
     * 采集报文控制器
     *
     * @return 形式返回
     */
    @Operation(summary = "采集报文控制器")
    @GetMapping(value = "doSinaAsharesQuotesCrawler")
    public BetriceResultVo<SinaAsharesQuotesPo> doSinaAsharesQuotesCrawler() {
        BetriceResultVo<SinaAsharesQuotesPo> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }

    /**
     * 解析报文控制器
     *
     * @param request 报文
     * @return 形式返回
     */
    @Operation(summary = "解析报文控制器")
    @GetMapping(value = "doSinaAsharesQuotesRequest")
    public BetriceResultVo<SinaAsharesQuotesPo> doSinaAsharesQuotesRequest(@RequestBody String request) {
        BetriceResultVo<SinaAsharesQuotesPo> betriceResultVo = new BetriceResultVo<>();
        return betriceResultVo;
    }
}
